package com.vishnu.core.methodLocalInnerClassPractice;

public class Outer2 {

	int x=23;
	static int y=87;
	
	public void m1(){
		 class InstanceInner{
	    	 public void instanceInnerMethod(){
	    		 System.out.println("from instanceInnerMethod x="+x);
	    		 System.out.println("from instanceInnerMethod y="+y);
	    	 }
		}
		 InstanceInner ii=new InstanceInner();
		 ii.instanceInnerMethod();
		 
	}
	
	public static void m2(){
	     class StaticInner{
	    	 public void staticInnerMethod(){
	    		 System.out.println("from staticInnerMethod y="+y);
	    	 }
	     }
	     StaticInner si=new StaticInner();
	     si.staticInnerMethod();
	}
	
	
	public static void main(String[] args) {
		
		Outer2 o=new Outer2();
		o.m1();
		Outer2.m2();
		
	}
	
	
}
